package controller;

import entity.db.CitationTextDB;
import entity.db.KnowledgeFlowDB;
import operation.TextOperation;
import service.TextService;
import service.impl.TextServiceImpl;

import java.util.List;

/**
 * @author ：hzs
 * @date ：Created in 2020/12/12 16:35
 * @description：
 * @modified By：
 * @version: $
 */
public class TextController {

    private TextOperation textOperation = new TextOperation();

    private TextService textService = new TextServiceImpl();

    public List<String> getNounPhraseFromSentence(String sentence) {
        return textOperation.getNounPhraseFromSentence(sentence);
    }

    public List<CitationTextDB> getAllCitationText() {
        return textService.getAllCitationText();
    }

    public List<CitationTextDB> getCitationTextNotInKnowledgeFlowTable() {
        return textService.getCitationTextNotInKnowledgeFlowTable();
    }

    public List<List<Object>> getKnowledgeFlowNotInKFContent() {
        return textService.getKnowledgeFlowNotInKFContent();
    }

    public boolean batchInsertKnowledgeFlow(List<KnowledgeFlowDB> knowledgeFlowDBList){
        return textService.batchInsertKnowledgeFlow(knowledgeFlowDBList);
    }
}
